home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_riv_ambwaterflow1.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
58 lines
# Jones 3D Cog Script
#
# RIV_AmbWaterFlow1.cog
#
# [TRM]
#
# (C) 1999 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message entered
thing ambientPos
sector sec_On1 linkID=1
sector sec_On2 linkID=1
sector sec_Off1 linkID=0
sector sec_Off2 linkID=0
sound snd_Water
int looping local
int playing=0 local
flex vol=0.5
flex min=8.0
flex max=15.0
end
# ========================================================================================
code
entered:
if((GetSenderID() == 1) && (playing == 0))
{
playing = 1;
Sleep(Rand());
looping = PlaySoundThing(snd_Water, ambientPos, vol, min, max, 0x0001);
}
if((GetSenderID() == 0) && (playing == 1))
{
playing = 0;
StopSound(looping, 0.0);
}
return;
# ========================================================================================
end